package com.yuma.tingshu.album.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuma.tingshu.model.album.AlbumInfo;
import com.yuma.tingshu.query.album.AlbumInfoQuery;
import com.yuma.tingshu.vo.album.AlbumListVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

@Mapper
public interface AlbumInfoMapper extends BaseMapper<AlbumInfo> {

    Page<AlbumListVo> findUserAlbumPage(Page<AlbumListVo> page, @Param("query") AlbumInfoQuery query);

    AlbumListVo findUserAlbumListVo(Long albumId);
}
